/**
 * @project_name staff_vehicle
 * @package_name com.ssh.ser.applycar
 * @desc TODO
 * @param
 * @author jack
 * @date 2013-4-24
 * @time 上午10:21:52
 */
package com.ssh.ser.common;

import java.util.List;

import com.ssh.dao.StaffApplyCarDAOI;
import com.ssh.dao.StaffUseCarDAOI;
import com.ssh.entity.StaffApplyCar;
import com.ssh.entity.StaffUseCar;
import com.ssh.model.ACarResult;

/**
 * @author jack
 * @desc 员工申请用车接口
 */
public class ApplySerImpl implements ApplySerI {
	StaffApplyCarDAOI staffApplyCarDAOI ;
	StaffUseCarDAOI  staffUseCarDAOI ;

	/* (non-Javadoc)
	 * @see com.ssh.ser.applycar.ApplySerI#applyCar(com.ssh.entity.StaffApplyCar)
	 */
	@Override
	public StaffApplyCar applyCar(StaffApplyCar staffApplyCar) {
		// TODO Auto-generated method stub
		return staffApplyCarDAOI.addStaffAC(staffApplyCar);
	}

	/* (non-Javadoc)
	 * @see com.ssh.ser.applycar.ApplySerI#returnCar(com.ssh.entity.StaffApplyCar)
	 */
	@Override
	public StaffApplyCar returnCar(StaffApplyCar staffApplyCar) {
		// TODO Auto-generated method stub
		return staffApplyCarDAOI.updateBySAC(staffApplyCar);
	}

	/* (non-Javadoc)
	 * @see com.ssh.ser.applycar.ApplySerI#viewApplyCarInfo(java.lang.String[])
	 */
	@Override
	public List<StaffApplyCar> viewApplyCarInfo(String... strings) {
		// TODO Auto-generated method stub
		return staffApplyCarDAOI.queryByIdList(strings[0]);
	}

	/**
	 * @return the staffApplyCarDAOI
	 */
	public StaffApplyCarDAOI getStaffApplyCarDAOI() {
		return staffApplyCarDAOI;
	}

	/**
	 * @param staffApplyCarDAOI the staffApplyCarDAOI to set
	 */
	public void setStaffApplyCarDAOI(StaffApplyCarDAOI staffApplyCarDAOI) {
		this.staffApplyCarDAOI = staffApplyCarDAOI;
	}

	/**
	 * @return the staffUseCarDAOI
	 */
	public StaffUseCarDAOI getStaffUseCarDAOI() {
		return staffUseCarDAOI;
	}

	/**
	 * @param staffUseCarDAOI the staffUseCarDAOI to set
	 */
	public void setStaffUseCarDAOI(StaffUseCarDAOI staffUseCarDAOI) {
		this.staffUseCarDAOI = staffUseCarDAOI;
	}

	/* (non-Javadoc)
	 * @see com.ssh.ser.applycar.ApplySerI#viewACarInfo(java.lang.String[])
	 */
	@Override
	public List<ACarResult> viewACarInfo(String... strings) {
		// TODO Auto-generated method stub
		return null;
	}

	/* (non-Javadoc)
	 * @see com.ssh.ser.applycar.ApplySerI#viewACarInfo()
	 */
	@Override
	public List<ACarResult> viewACarInfo(String staffId) {
		// TODO Auto-generated method stub
		return staffApplyCarDAOI.queryMyApplyCarInfo(staffId);

	}

	/* (non-Javadoc)
	 * @see com.ssh.ser.applycar.ApplySerI#queryMyApplyCarInfo(com.ssh.entity.StaffApplyCar, com.ssh.entity.StaffUseCar)
	 */

}
